//
//  TFDeviceNetworkSpeedHelper.h
//  TFFoundation
//
//  Created by Du Kai on 2021/3/25.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

#pragma mark - 返回网速key值
extern NSString * const kSpeedNumberKey;
extern NSString * const kSpeedUnitsKey;

#pragma mark - 网速通知
/**
*  @{
    @"kSpeedNumberKey":@"100",
    @"kSpeedUnitsKey":@"K.s"
 }
*/
extern NSString * const kNetworkReceivedSpeedNotification;

/**
*  @{
   @"kSpeedNumberKey":@"100",
   @"kSpeedUnitsKey":@"K.s"
}
*/
extern NSString * const kNetworkSendSpeedNotification;

@interface TFDeviceNetworkSpeedHelper : NSObject

@property (nonatomic, copy, readonly) NSString * receivedNetworkSpeed;

@property (nonatomic, copy, readonly) NSString * sendNetworkSpeed;

+ (instancetype)shareNetworkSpeed;

- (void)startMonitoringNetworkSpeed;

- (void)stopMonitoringNetworkSpeed;

@end

NS_ASSUME_NONNULL_END
